<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});


// Route::get('user/{name?}', function($name=null){
//     return $name;
// });
/*
Route::get('addcontent', 'Db\DbController@add');
Route::get('addmore', 'Db\DbController@addGroup');
Route::get('get', 'Db\DbController@get');
*/
Route::match(['get','post'], 'add', 'Msg\MsgController@addcontent');
Route::get('index', 'Msg\MsgController@index');
Route::get('delete/{id}', 'Msg\MsgController@delete');
Route::get('edit/{id}', 'Msg\MsgController@edit');
